import { developmentUrl } from "../config/env";
import request from "../config/axios";

export function getList(params) {
    return request({
        url: `${developmentUrl}/shop/user/list`,
        method: 'get',
        params
    })
}


export function save(params) {
    return request({
        url: `${developmentUrl}/shop/user`,
        method: 'post',
        params
    })
}

export function remove(id) {
    return request({
        url: `${developmentUrl}/shop/user`,
        method: 'delete',
        params: {
            id: id
        }
    })
}


export function getUser(id) {
  return request({
    url: `${developmentUrl}/shop/user/`+id,
    method: 'get'
  })
}

export function getUserInfo(id) {
  return request({
    url: `${developmentUrl}/shop/user/info/`+id,
    method: 'get'
  })
}
